﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EnheimGallery.DAL;
namespace EnheimGallery.Models.StatisticsModel
{
    public class UserStatisticsViewModel 
    {
        public string Username { get; set; }
        public int CategoriesCount { get; set; }
        public int PhotosCount { get; set; }
        public string LastActivityDate { get; set; }
        public string Description { get; set; }
        public UserStatisticsViewModel(UserStatisticsData userdata)
        {
            this.Username = userdata.Username;
            this.CategoriesCount = userdata.CategoriesCount;
            this.PhotosCount = userdata.PhotosCount;
            this.LastActivityDate = userdata.LastActivityDate.ToShortDateString();
            this.Description = userdata.Description;
        }
    }
}